﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Jinjia.Approve.Entity.Entity.JJFlow;

namespace Jinjia.Approve.IService.JJFlow
{
    public interface IJJFlowStepService
    {
        Task<List<jj_flow_step>> GetNextPossiblePath(int node_id);


        /// <summary>
        /// 根据设置的条件判断名称condition_name、以及外部业务主键biz_order_id进行判断是否条件满足
        /// </summary>
        /// <param name="biz_order_id"></param>
        /// <param name="step_id"></param>
        /// <param name="depart_id"></param>
        /// <param name="user_id"></param>
        /// <returns></returns>
        Task<bool> ConditionSatisfied(string biz_order_id, int step_id, string depart_id = "0", string user_id = "0");
    }
}